## Script (Python) "getSite"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##

object = context
while ( object.portal_type != 'Plone Site' and object.portal_type!= 'ComixSite' ):
    object = object.aq_parent
if object.portal_type == 'ComixSite':
    return object
else:
    return None



